//
//  VVYLocation.h
//  唯唯游
//
//  Created by Jay_Apple on 15/10/8.
//  Copyright (c) 2015年 weiweiyou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

typedef void(^locationSuccess)(NSString *city, CLLocationCoordinate2D coordinate);
typedef void(^locationFauilre)(NSString *error);

@interface VVYLocationManager : NSObject

/**
 *  定位获取城市
 */
- (void)getLocationCityInfoSuccess:(locationSuccess)success failure:(locationFauilre)failure;

/**
 *  停止定位
 */
- (void)stopLocation;

/**
 *  根据地名导航
 */
- (void)guideWithPlaceName:(NSString *)name;


/**
 *  根据经纬度导航
 */
- (void)guideWithCoordinate:(CLLocationCoordinate2D )coordinate;


/**
 *  单例
 */
+ (instancetype)sharedManager;

@property (nonatomic, assign) BOOL isLocating;

@property (nonatomic, copy, readonly) NSString *city;

@property (nonatomic, copy, readonly) NSString *area;

@property (nonatomic, assign, readonly) CLLocationCoordinate2D locCoordinate;



@end
